package com.mr.cai.main.utils;

import android.util.DisplayMetrics;

import com.mr.cai.main.MrCaiApplication;

public class MrCaiConstant {
	/**
	 * 整个应用程序运行过程中用到的数据
	 */

	public final static String ROOT_DIR = "/MrCai/";

	public static final String SDCARD_ROOT_PATH = android.os.Environment.getExternalStorageDirectory().getAbsolutePath()+ROOT_DIR;//路径

	public static final String DEVICEID = CommonCoreUtil.generateDeviceId(
			MrCaiApplication.getInstance());

	public static final String BRAND = CommonCoreUtil.getBrandName();

    public static final String OS = "android";

    public static final String OS_TYPE = "0";

	public static final String WX_AppID = "wxb6704ac52abcfe4c";

	public static final String WX_AppSecret = "943d690bd5020ae629c20281e53bc334";

	public static final String QQ_AppID = "1104826608";

	public static final String QQ_AppSecret = "PsLMILpDwU6QDNOk";

	public static final String VERSION = CommonCoreUtil.getClientVersionName(
			MrCaiApplication.getInstance());

	public static final int VERSION_CODE = CommonCoreUtil.getClientVersionCode(
			MrCaiApplication.getInstance());

	public static final String OS_VERSION= CommonCoreUtil.getOSVersionCode();

	public static final DisplayMetrics displayMetrics = MrCaiApplication.getInstance().getResources().getDisplayMetrics();

	public static final int screenWidth = CommonCoreUtil.getScreenWidth();

	public static final int screenHeight = CommonCoreUtil.getScreenHeight();

	public static final int YX_PAGESIZE_CONSTANT = 10;

	public static final String EN_DE_CODE_PWD = "12345678";

	public final static String REGMOBILENUMEX = "^((1[0-9][0-9]))\\d{8}$";
	public final static String REGEMAILEX =
			"^(([\\w-]+\\.)+[\\w-]+|([a-zA-Z]{1}|[\\w-]{2,}))@"
					+ "((([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.([0-1]?"
					+ "[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\."
					+ "([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.([0-1]?"
					+ "[0-9]{1,2}|25[0-5]|2[0-4][0-9])){1}|"
					+ "([a-zA-Z]+[\\w-]+\\.)+[a-zA-Z]{2,4})$";
}

